package com.scheduler.backend.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

@Entity
@Table(name = "schedule")
public class Schedule {

    @Id
    @Column(name = "schedule_code")
    private String scheduleCode;

    @Column(name = "schedule_name")
    private String scheduleName;

    @Column(name = "schedule_start")
    private Date scheduleStart;

    @Column(name = "schedule_end")
    private Date scheduleEnd;

    @Column(name = "deleted")
    private Integer deleted = 0;
}
